<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>${message("消息通知列表")}</title>
<link href="/resources/css/common.css" rel="stylesheet" type="text/css" />
<link href="/resources/css/zTreeStyle.css" rel="stylesheet" type="text/css">
<link href="/resources/css/layout.css" rel="stylesheet" type="text/css" />
<link href="/resources/css/mmGrid.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/resources/js/reference/jquery.js"></script>
<script type="text/javascript" src="/resources/js/base/dialog.js"></script>
<script type="text/javascript" src="/resources/js/reference/jquery.validate.js"></script>
<script type="text/javascript" src="/resources/js/base/request.js"></script>
<script type="text/javascript" src="/resources/js/base/global.js"></script>
<script type="text/javascript" src="/resources/js/reference/mmGrid.js"></script>
<script type="text/javascript" src="/resources/plugin/datePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/resources/js/reference/jquery.ztree.core-3.5.js"></script>
<script type="text/javascript">
function edit(id){
	parent.change_tab(0,'edit.jhtml?id='+id+'&isCheck=${isCheck}');
}
$().ready(function() {
	var $buildForm = $("#buildForm");
	
	var types= {1:'${message("手动开锁")}',2:'${message("手动解除报警")}'};
	var isProcess= {0:'${message("未处理")}',1:'${message("已处理")}'};
	var cols = [
		{ title:'${message("终端设备编号")}', name:'terminal_num' ,align:'center',renderer:function(val,item,rowIndex){
			return val;
		}},
		{ title:'车辆信息' ,align: 'center', cols: [
			{ title:'${message("车牌号")}', name:'car_number' ,align:'center' },
			{ title:'${message("锁编号")}', name:'elock_num' ,align:'center' },
			{ title:'${message("舱位")}', name:'berth' ,align:'center' },
		]},
		{ title:'消息通知信息' ,align: 'center', cols: [
			{ title:'${message("消息类型")}', name:'type' ,align:'center' ,renderer:function(val,item){
				return types[val];
			}},
			{ title:'${message("消息内容")}', name:'content' ,width:210,align:'center' },
			{ title:'${message("报警信息")}', name:'warning_message' ,width:310,align:'center' },
			{ title:'${message("状态")}', name:'is_process' ,align:'center' ,renderer:function(val,item){
				return isProcess[val];
			}},
			{ title:'${message("处理结果")}', name:'process_result' ,align:'center' },
			{ title:'${message("处理人")}', name:'processor' ,align:'center' },
			{ title:'${message("处理时间")}', name:'process_time' ,align:'center' },
			{ title:'${message("经度")}', name:'longitude' ,align:'center' },
			{ title:'${message("纬度")}', name:'latitude' ,align:'center', },
			{ title:'${message("备注")}', name:'remark' ,align:'center', },
			{ title:'${message("消息通知时间")}', name:'modify_date' ,align:'center',width:130 },
		]},
	];
	$mmGrid = $('#table-m1').mmGrid({
		autoLoad:true,
        cols: cols,
        fullWidthRows:true,
        url: 'list_data.jhtml',
        params:function(){
        	return $("#listForm").serializeObject();
        },
		plugins : [
            $('#paginator').mmPaginator()
        ]
    });
});   


</script>
<script type="text/javascript">
$().ready(function(e) {
 	var zTree = $("#js-menu").initTree({
		url:"/saleOrg/getNodes.jhtml",
		onClick:function(e,treeId, treeNode) {
			$("#saleOrgId").val(treeNode.id);
		    if(treeNode.id==""){
		  		$("#saleOrgName").val("");
		    }else{
		  		$("#saleOrgName").val(treeNode.name);
		    }
		    $("#searchBtn").click();
		}
	})
    zTree.addNodes(null,{'id':'','pId':'','name':'全部机构','isParent':false});
}); 
</script>
</head>
<body>
<!--<div class="subnav">
	<input type="hidden" id="flag" value="0">
	<input type="hidden" id="storeId" value="">
 	<div class="tit"><s></s>机构分类</div>
  	<div class="subn-list ztree" id="js-menu">
  	</div>
</div>
<div class="main-right">
-->
	<form id="listForm" action="list.jhtml" method="get">
		<div class="bar">
			<div class="buttonWrap">
				
			<!--
			<div class="flag-wrap flagImp-wrap">
					<a href="javascript:void(0);" class="iconButton" id="export1Button">
						<span class="impIcon">&nbsp;</span>导入导出
					</a>
					<ul class="flag-list">
						<li><a href="javascript:void(0)" onclick="member_import(this)"><i class="flag-imp01"></i>${message("导入")}</a></li>
						<li><a href="javascript:void(0)" onclick="exportExcel(this)"><i class="flag-imp02"></i>${message("选择导出")}</a></li>
						<li><a href="javascript:void(0)" onclick="segmentedExport(this)"><i class="flag-imp02"></i>${message("条件导出")}</a></li>
					</ul>
				</div>
			-->
		</div>
		<div class="search-btn">
			<a href="javascript:;" id="searchBtn" class="iconButton">${message("1004")}</a>
		</div>
		<div id="searchDiv">
			 <div id="search-content" >
			 	<dl>
    				<dt ><p>终端设备编号:</p></dt>
	    			<dd >
	    				<input type="text" class="text" id="sn" name="terminalNum"  btn-fun="clear"/>
	    			</dd>
	    		</dl>
	    		<dl>
    				<dt ><p>锁编号:</p></dt>
	    			<dd >
	    				<input type="text" class="text" id="sn" name="elockNum"  btn-fun="clear"/>
	    			</dd>
	    		</dl>
	    		<dl>
	    			<dt ><p>状态：</p></dt>
        			<dd>
        				<select id="isProcess" name="isProcess" class="text">
							<option value="" >请选择</option>
							<option value="0" >未处理</option>
							<option value="1" >已处理</option>
						</select>
        			</dd>
	    		</dl>
        	</div>
		</div>
		</div>
		<!--</div>-->
		<div class="table-responsive">
			<table id="table-m1"></table>
	    	<div id="body-paginator" style="text-align:left;">
	    		<div id="paginator"></div>
	   		</div>
		</div>
	</form>
</body>
</html>